﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AppDataStruct;
using PrintExcel;

namespace YSLWorkDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void buttonTestMerge_Click(object sender, EventArgs e)
        {
            SFZInfo info = new SFZInfo();
            info.Name = "沈飞";
            info.Address = "湖南省祁东县白鹤铺镇花塘村曾家组";
            info.BirthDate = "1991-01-17";
            info.ExpiryDate = "2011.01.21-2021.01.21";
            info.IssueUnit = "桃江县公安局";
            info.Nation = "汉";
            info.Sex = "男";
            info.SFZH = "430426199602140980";
            SFZMerge merge = new SFZMerge(info);
            Bitmap backImg = merge.MergeSFZBackPicture();
            Bitmap frontImg = merge.MergeSFZFrontPicture();
            backImg.Save("D:\\SFZBack.jpg");
            frontImg.Save("D:\\SFZFront.jpg");
        }
    }
}
